<div ng-controller="MsgsetCtrl" ng-init="addAction()" class="sui-form form-horizontal">
    <form name="msgsetForm" novalidate ng-submit="msgsetAdd()">
        <ul class="sui-breadcrumb">
            <li><a href="#/msgset/list">{{'配置是否发送消息' | translate}}</a></li>
            <li class="active">{{msg_events_users.msg_id?'edit':'add_new' | translate}}</li>
        </ul>
        <div class="control-group">
            <label class="control-label v-top">{{'选择用户' | translate}}:</label>
            <div class="controls">
                <span ng-show="msg_events_users.user_id">
                    <wxinfo ng-model="msg_events_users.user_id" userid="msg_events_users.user_id"></wxinfo>
                </span>
                <span ng-show="!msg_events_users.user_id">
                    {{roleInfo.name}}
                    <chose-role role-check="roledata(roleInfo)"></chose-role>
                    <span ng-show="roleInfo">
                        {{userInfo.nick_name}}
                        <chose-role-user role-id="roleInfo.role_id" user-check="userdata(userInfo)"></chose-role-user>
                    </span>
                </span>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'商品订单' | translate}}:</label>
            <div class="controls">
                <choice ng-model="msg_events_users.item" dft="1"></choice>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'报名订单' | translate}}:</label>
            <div class="controls">
                <choice ng-model="msg_events_users.baoming" dft="1"></choice>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'充值订单' | translate}}:</label>
            <div class="controls">
                <choice ng-model="msg_events_users.balance" dft="1"></choice>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'面付订单' | translate}}:</label>
            <div class="controls">
                <choice ng-model="msg_events_users.mianfu" dft="1"></choice>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'酒店订单' | translate}}:</label>
            <div class="controls">
                <choice ng-model="msg_events_users.hotel" dft="1"></choice>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'店铺统计' | translate}}:</label>
            <div class="controls">
                <choice ng-model="msg_events_users.tongji" dft="1"></choice>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'客服消息' | translate}}:</label>
            <div class="controls">
                <choice ng-model="msg_events_users.kefu" dft="1"></choice>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'退款消息' | translate}}:</label>
            <div class="controls">
                <choice ng-model="msg_events_users.refund" dft="1"></choice>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'代理商审核' | translate}}:</label>
            <div class="controls">
                <choice ng-model="msg_events_users.distributor" dft="1"></choice>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'客服跟单' | translate}}:</label>
            <div class="controls">
                <choice ng-model="msg_events_users.gendan" dft="1"></choice>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'二次授权' | translate}}:</label>
            <div class="controls">
                <choice ng-model="msg_events_users.topauth" dft="1"></choice>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label"></label>
            <div class="controls">
                <button type="submit" id="submit" class="sui-btn btn-primary">
                    <span>{{'save'|translate}}</span>
                </button>
            </div>
        </div>
    </form>
</div>